#ifndef db_info_H
#define db_info_H

#include <vector>

struct DatabaseInfo{
    std::string host;
    std::string user;
    std::string passwd;
    std::string dbname;
    unsigned int port;
};

struct RowData {
    std::vector<std::string> fields;
};

struct QueryResult {
    std::vector<RowData> rows;

    void print(){
        for (const auto& row : rows) {
            for (const auto& field : row.fields) {
                std::cout << field << "\t";
            }
            std::cout << std::endl;
        }
    }

};


#endif
